import {createApp} from 'vue'
import './assets/css/styles.css'
import App from './App.vue'
const app = createApp(App);
//引入iconpark图标库
// import '@icon-park/vue/styles/index.css';
import {install} from '@icon-park/vue-next/es/all';
install(app); // 代码使用 h-edit
install(app, 'iconpark'); // 自定义前缀 h-edit

import utilstoken from './utils/utilstoken.js'
app.config.globalProperties.$utilstoken = utilstoken;
window.$utilstoken = utilstoken;

import utilscommon from './utils/utilscommon.js'
app.config.globalProperties.$utilstoken = utilscommon;
window.$utilscommon = utilscommon;

import utilssequelize from './utils/utilssequelize.js'
app.config.globalProperties.$utilstoken = utilssequelize;
window.$utilssequelize = utilssequelize;
window.sequelize=null;

import tools from './utils/tools.js'
app.config.globalProperties.$tools = tools;
window.$tools = tools;

import api from './api/api.js'
app.config.globalProperties.$api = api;
window.$api = api;

import XEUtils from 'xe-utils'
app.config.globalProperties.$utils = XEUtils
app.config.globalProperties.$cookie = XEUtils.cookie
window.$utils = XEUtils;

//引入 Layui
import Layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/index.css'
app.use(Layui);
import {layer} from "@layui/layui-vue"; // 引入qs模块，用来序列化post类型的数据，后面会提到
window.$layer = layer;

// //引入easyui
// import 'v3-easyui/dist/themes/default/easyui.css';
// import 'v3-easyui/dist/themes/icon.css';
// import 'v3-easyui/dist/themes/vue.css';
// import EasyUI from 'v3-easyui';
// app.use(EasyUI);

// 视频插件
// import VideoPlayer from 'vue-video-player/src'
// import 'video.js/dist/video-js.css'
// import 'vue-video-player/src/custom-theme.css'
// app.use(VideoPlayer)

// import videojs from "video.js";
// import "video.js/dist/video-js.css";
// window.$video = videojs;

//引入pinia
import {createPinia} from 'pinia' //引入pinia
app.use(createPinia())
//引入pinia

//引入router
import router from './router/routerindex'
app.use(router)


app.mount('#app')
